Method and apparatus for assessing quality of video stream

ABSTRACT

Objective video quality assessment models at media-layer or at packet-layer are known for estimating audio/video quality of experience. Existing models are not able to provide stable performance. A method for enabling quality assessment of a stream of frames of video data comprises receiving a sequence of packets, generating a set of parameters and inserting said generated set of parameters as side information into said stream of frames, wherein at least one parameter refers to a video slice level. A method for assessing the quality of a stream of frames of video data comprises receiving a sequence of packets, extracting a set of parameters from said sequence of packets and generating an estimated mean opinion score, wherein the video data comprise a slice level and wherein the extracted set of parameters comprises at least one parameter that refers to a video slice level.

FIELD OF THE INVENTION

This invention relates to a method and an apparatus for assessing thequality of a video stream. The invention relates also to a method and anapparatus for enabling quality assessment of a video stream.

BACKGROUND

With the development of Internet Protocol (IP) networks, videocommunication over wired and wireless IP network (e.g. IPTV service) hasbecome very popular. Unlike traditional video transmission over cablenetwork, video delivery over IP network is much less reliable. Thesituation is even worse in the environment of wireless networks.Correspondingly, one recent requirement for video quality modelling(VQM) is to rate the quality degradation caused by IP transmissionimpairment, e.g. packet loss, delay, jitter, except those caused byvideo compression. Current research addresses objective video qualityassessment models at media-layer or at packet-layer for estimatingaudio/video quality of experience (QoE)^(i). Quality is usuallyexpressed as a mean opinion score (MOS) value. Media-layer models usemedia signals, such as speech waveform or video pixel data. Packet-layermodels use only packet header information, and may help in automaticnetwork diagnosis to guarantee user experience. It is a light-weightmodel as compared to the media-layer model, thus suitable for real-timemonitoring and for easy deployment in customer devices (e.g. STBs). ^(i)Akira Takahashi: Framework and Standardization of Quality of Experience(QoE) Design and Management for Audiovisual Communication Services, NTTTechnical Review 4/2009, www.ntt-review.jp/archive/2009/200904.html

Currently known objective packet-layer models use packet information asinput parameters, e.g. packet loss rate, timestamp in RTP header andpacket size. These input parameters are video content independent.However, a loss of different part of video content arouses differentperceptual degradation. This is a shortage of the existing packet-layerVQM that affects its performance in terms of estimation accuracy androbustness.

A further problem of the existing models is that the effect of errorconcealment (EC) is not fully taken into account. The impact of a lostpacket on visual quality depends significantly on the error concealmentmethods employed in the decoder, in addition to the encoderconfiguration. Though a known VQM model^(ii) uses two modelcoefficients, depending on the employed packet-loss concealment scheme,the two model coefficients b₀ and b₁ are fixed for given scheme. Asimilar model uses fixed EC weights for a given EC scheme employed in adecoder, wherein the value of the EC weights is set empirically.However, it has been observed that setting a fixed EC weight for eachdecoder is far from approximating the actual effect of EC. ^(ii) A.Raake, M.-N. Garcia, S. Möller J. Berger, F. Kling, P. List, J. Johann,C. Heidemann, T-V-MODEL: PARAMETER-BASED PREDICTION OF IPTV QUALITY,ICASSP 2008

Further, in packet based networks the coded bits of a video frame may beencapsulated into several packets, such as RTP packets, depending on themaximum transmission unit (MTU) size of the underlying network. ForH.264 encoder, a video frame may be encoded into several slices. Fortransmission, data of a slice may be encapsulated in several RTPpackets, or several slices may be encapsulated in one RTP packet, or oneslice is used per packet, depending on MTU size. Thus, the relationshipbetween the statistics features of packet loss and MOS is not stable.Therefore the existing models are not able to provide stable performancedue to limitation of only considering statistics features of packet lossand MOS.

SUMMARY OF THE INVENTION

It has been found that setting a fixed EC weight for each decoder is notsufficient, because different EC methods may be applied to differentslices in a decoder. Besides, in real-world applications, one H.264encoded video frame may be encoded into several slices, and the loss ofdifferent slice may result in very different degree of visible artefactsafter EC in a decoder. Thus, the approach of applying different ECweight at decoder level has been further refined.

The present invention provides a refined solution for at least theabove-mentioned problems.

A method for enabling quality assessment of a stream of frames of videodata is disclosed, wherein the video data are transmitted via a packetnetwork and each frame of video data is represented by a variable numberof packets. The method comprises steps of receiving a sequence ofpackets associated with the stream of frames of video data, generating aset of parameters from said sequence of packets, the set of parametersbeing suitable for generating an estimated mean opinion score for thestream of frames of video data, and inserting said generated set ofparameters as side information into said stream of frames. The videodata comprise a slice level, and the generated set of parameterscomprises at least one parameter that refers individually to the slicelevel of the video.

Further, a method for assessing the quality of a stream of frames ofvideo data is disclosed, wherein the video data are transmitted via apacket network and each frame of video data is represented by a variablenumber of packets. The method comprises steps of receiving a sequence ofpackets associated with the stream of frames of video data, extracting aset of parameters from said sequence of packets, and generating anestimated mean opinion score based on said set of parameters. The videodata comprise a slice level, and the extracted set of parameterscomprises at least one parameter that refers individually to the slicelevel of the video.

An apparatus suitable for implementing the method for enabling qualityassessment is disclosed in claim 14, and an apparatus suitable forimplementing the assessing method is disclosed in claim 15.

Further, one embodiment of the present invention is a computerexecutable program for a video quality estimation device, causing acomputer of the device to execute said method for enabling qualityassessment and/or said method for assessing the quality of a stream.Another embodiment is a computer readable recording medium havingrecorded thereon said computer executable program.

Advantageous embodiments of the invention are disclosed in the dependentclaims, the following description and the figures.

BRIEF DESCRIPTION OF THE DRAWINGS

Exemplary embodiments of the invention are described with reference tothe accompanying drawings, which show in

FIG. 1 the structure of a conventional packet-layer model;

FIG. 2 a block diagram of the present invention;

FIG. 3 a flow-chart of the method for enabling video quality assessment;

FIG. 4 a flow-chart of the method for assessing video quality;

FIG. 5 a block diagram of a device for enabling video qualityassessment; and

FIG. 6 a block diagram of a device for assessing video quality.

DETAILED DESCRIPTION OF THE INVENTION

Traditionally, as shown in FIG. 1, the input of a video qualityassessment model is packet header information of a packet stream 14 andencoder configuration information 13. After packet information analysis11, analysis data like packet-loss rate PLR and burst loss frequency BLFare provided for mapping 12 them to an objective video quality value 15,which is an estimated score of the video quality (i.e. Mean OpinionScore MOS). The encoder configuration information 13 is based onassumptions, namely codec type, group-of-picture (GOP) structure, videoformat (as obtained from transport packet headers) and some videocontent features, e.g. pixel data.

With respect to the above-mentioned problems of the existingpacket-layer VQM models, the present invention can improve the accuracyand robustness of the packet-layer VQM model, and simultaneouslymaintain low computational complexity. This is advantageous inparticular for real-time video quality monitoring.

The present invention is described exemplarily based on the followingimplementation embodiments.

First, exemplary side information syntax is defined for each videoslice, and for each group of picture (GOP) or each scene group or slicegroup. The terms “scene group” and “slice group” will be interpretedbelow.

Second, the defined side information is used as input of a novelpacket-layer video quality assessment model, as shown in FIG. 2. As aresult, the defined side information may serve for improving the modelperformance in terms of estimation accuracy and robustness. For example,the side information is used to guide the setting of EC weight value anderror propagation (EP) weight value in the packet-layer VQM, whichtherefore overcomes the aforementioned shortages. On the other hand, theoverhead for side information will be kept as small as possible. Withthe described side information, a significant improvement of qualityestimation accuracy can be achieved even if only two or three levelsneed to be transmitted.

As mentioned above, there are three general categories of objectivevideo quality modelling, depending on the inputs: packet-layer models,bitstream-level models, and media-layer models. Media-layer models workin the pixel domain. Parametric packet-layer models are based on packetheader information, network parameters (e.g. bandwidth, packet lossrate, delay, etc.), and encoder configuration information.Bitstream-level models are hybrid models based on half-decoded videobitstream information and packet header information as well.Reduced-reference media-layer models have been proposed e.g. for ITUstandard ITU-T Rec. J.246. However, there exists no reduced-referencemodel for packet-layer models yet.

In the scheme of the present invention, side information set for eachslice in the coded bit stream or side information set for each group isalso used as input. The output of the model is a MOS value.

It is worth mentioning the difference between the side informationsyntax for each video slice (which is encapsulated into one packet) ofthe present invention and the priority level for each video packet. Thelatter is a traditional method to differentiate the importance ofpackets according to different encoded frame type (e.g. IDR/I/P/Bframe), so that the network in congestion can discard packets moresmartly in an effort to provide end user with as good video quality aspossible. The proposed type of side information is different from frametypes, and the information reflects the decoder's EC effect, visualimportance (or Region of Interest, ROI), and error propagation (EP)attenuation rate of a video slice. This information can significantlyimprove the performance of packet-layer VQM, and also maintain thelight-weight feature of packet-layer model, introducing only very lowoverhead of transmission.

FIG. 2 shows a functional block diagram of the present invention. Apacket information analysis block 21 uses RTP/UDP header information 25to get a set of parameters for each frame. E.g. for an H.264/AVCencoder, the parameter set per frame (for a frame with index i) 28includes the number of total slices N_(i,total) the number of lostslices N_(i, lost), and the index of lost slices in the video frame. Itis important that the statistics of “slice” information are used insteadof “packet” information. A frame may be encoded into one or more slices,according to an encoder configuration. E.g. one macroblock (MB) row in aframe may be a slice, or a slice may be set so that its size is notlarger than the MTU size. A slice is an independent decoding unit. Inreal-world video transmission, the data of a slice may be encapsulatedinto one or more RTP packets, depending on the MTU size of theunderlying network. On the other hand, it is also possible that severalslices of a frame are assembled into one RTP packet (as described indetail in RFC3984). If any packet of a slice is lost, the slice cannotbe decoded properly and is regarded as lost. There is also anothersituation where a packet loss is detected, which corresponds to the lossof several slices of a frame. By analyzing NALU header per RFC3984,correctly received slices per frame can be identified. Finally, foridentifying different frames, the timestamps in RTP packet headers areused.

In the visible artefacts detection block 22, the described sideinformation set per slice 27, the calculated parameter set per frame 28and the encoder configuration information 29 are used to calculate the“Level of Visible Artefacts” (LoVA) for each frame. For an ith frame,the LoVA is estimated by Eq. (1).

$\begin{matrix}{V_{i} = {\frac{\sum\limits_{j = 1}^{N_{i,{lost}}}\;{w_{i,j}^{location} \times {w_{i,j}^{EC}\left( {{EC}_{i},{SI}_{i,j},{TI}_{i,j}} \right)}}}{N_{i,{total}}} + \frac{\sum\limits_{j = 1}^{N_{i,{total}}}\;{E_{i,j}^{propagate} \times w_{i,j}^{IR}}}{N_{i,{total}}}}} & (1)\end{matrix}$

A proposed side information triplet is {EC weight level, ROI weightlevel, and EP attenuation level}, which is used to guide the setting ofthree weight coefficients in Eq. (1), as will be described below.

In the Mean LoVA (MLoVA) calculation block 23, the Mean LoVA (i.e.average LoVA) is calculated for a sequence of given time duration, e.g.t seconds. As is known from previous research^(iii), the simple metricof mean time between visible artifacts has an average correlation of0.94 with MOS. ^(iii) Nitin Suresh, Mean Time Between Visible Artefactsin Visual Communications, PHD thesis, Georgia Inst. of Tech., August2007

Therefore, the simple averaging method is used here as the temporalpooling method. That is,

$\begin{matrix}{{MLoVA} = {\left( {\frac{1}{M}{\sum\limits_{i = 1}^{M}\; V_{i}}} \right)/f_{r}}} & (2)\end{matrix}$where M is the total number of frames in t seconds, and f_(r) is theframe rate per second of the video sequence.

In the mapping block 24, the MLoVA is mapped to an objective MOS valueaccording to a function that is e.g. trained using a curve fittingmethod, such as a least square curve fitting method.

In Eq. (1), different weights w_(i,j) ^(location) are assigned to lostslices, depending on the location of each lost slice in the frame. Theweight can be set in the light of side information of the ROI level.There are two ROI levels for slices, tagged as “1” (slice contains aROI) or “0” (no ROI in slice). Correspondingly, the weight w_(i,j)^(location) is set to a larger value if the slice has a ROI, or to asmaller value otherwise, for differentiating their visual influence. Inexperiments it has been found advantageous if w_(i,j) ^(location) ise.g. doubled when ROI_level equals “1”.

In Eq. (1), w_(i,j) ^(EC)(EC_(i), SI_(i,j), TI_(i,j)) is the EC weightthat reflects different EC effects of different lost slices. The ECeffects of a lost slice depends not only on the EC method employed atthe decoder and the slicing mode employed at the encoder, but also onthe video content feature in the slice: a spatial complexity measureSI_(i,j) and a temporal complexity measure TI_(i,j). The value w_(i,j)^(EC) is set in the light of side information of EC level: it is set tosmaller or larger values to reflect the different EC effects ofdifferent slices and EC methods employed. In our experiment, for aninter-predicted slice, the w_(i,j) ^(EC) is set e.g. to 0.01, 0.3 and0.6 corresponding to EC_level of 0, 1 and 2 respectively. For anintra-coded slice, the w_(i,j) ^(EC) is set to 0.01 or 2, correspondingto an EC_level of 0 or 1.

In Eq. (1), the w_(i,j) ^(IR) reflects degree of the attenuation of thepropagated error. It is related to the ratio of intra coded MBs in theframe and the amount of predictive residue information. The value ofw_(i,j) ^(IR) can be set in the light of the EP_level of the slices inthe frame. The ratio of intra MB to the total number of MBs in the slice(denoted as IRR_(i,j)) can be obtained from EP_level value. Then in ourexperiment, w_(i,j) ^(IR)=1−IRR_(i,j). That is, w_(i,j) ^(IR) is set toreflect the intra MBs' role of stopping error from propagation.

In Eq. (1), E_(i,j) ^(propagate) denotes the amount of visible artefactspropagated from reference frames. The value depends largely on theencoder configuration information, i.e. the number of reference frames.In the experiment, the number of reference frames is two, and predicted(P-) and bi-directionally predicted (B-) frame types are used. TheE_(i,j) ^(propagate) is calculated as

$\begin{matrix}{E_{i,j}^{propagate} = \left\{ \begin{matrix}{0,} & \left( {I\mspace{14mu}{slice}} \right) \\{{{a \times E_{1,j}} + {b \times E_{2,j}}},} & {\left( {{P -},{B - {slice}}} \right).}\end{matrix} \right.} & (3)\end{matrix}$where E_(1,j) and E_(2,j) are stored artefacts values of two previousreference slices. a and b are weights for the propagated error fromdifferent reference frames, with a+b=1, a,bε(0,1). In the experiment, aand b were set as a=0.9, b=0.1 for P-frames, and a=b=0.5 for B-frames.

In the following, an exemplary syntax for side information transmissionis described.

One set of side information syntax is defined is at encoding slicelevel, as shown in Tab.1. A frame can be encoded into one or more slicesin H.264/AVC. An encoding slice is a decoding unit independent of otherslices of the frame. If a frame is encoded into several slices, oneslice may contain e.g. one row of MBs.

In the present embodiment, the side information set includes {EC_level,ROI level, and EP attenuation level} for each video slice. The proposedside information set may include additionally the parameter size_in_MB,e.g. when a variable number of MBs is included in the slices of a frame.This may occur e.g. when a H.264/AVC encoder is configured to the slicemode of “fixed bytes per slice”.

TABLE 1 Exemplary parameter set for slice level Syntax Description sizeparam_set_for_slice { EC_level error concealment effects 2 bits levelROI_level Region of Interest level 1 bit EP_attenuation_level errorpropagation attenuation 4 bits level size_in_MBs number of the MBs incurrent max. 8 bits slice }

EC_level is the value of “error concealment level”. This parameterreflects motion and/or texture complexity of the slice, and the ECmethod used. It can help measure the EC effects when the current sliceis lost. Usually, two or three levels (corresponding to 2 bits) areenough.

ROI_level is the value of “Region of Interest level”. It reflectswhether the current slice content is region of perceptual interest,e.g., eyes and mouth. It can be coded in 1 bit.

EP_attenuation_level is the value of “error propagation attenuationlevel”. This parameter reflects the different attenuation speed of thepropagated error to the current slice or current frame. It is related toencoder configuration (e.g. intra refresh rate in H.264) and videocontent itself (e.g. amount of residue information after predictivecoding). This parameter can be calculated once per encoding slice oronce per frame. 4 bits (corresponding to 16 levels) are usually enough.

size_in_MB is the number of the MBs in a current slice. This parameteris useful only when a variable number of MBs is included in the slicesof a frame. Its size depends on the frame size, usually 8 bits aresufficient.

If the auxiliary bandwidth is limited, the slice-level parameters may betransmitted selectively. In experiments we found that the EC_level helpsimprove performance most significantly. The second important informationis ROI_level, and the third is the EP_level information. The last one issize_in_MBs, which is useful only when the varied number of MBs isincluded in multiple slices of a frame. In one embodiment, there is onlyan EC_level parameter on slice level used. Further, as shown below, thisparameter may (but needs not) be calculated by different formulas,depending on the slice, according to criteria like e.g. the predictiontype of the slice (intra or inter) or the concealment type employed.

Generally, concealment methods fall into two types or categories:pixel-interpolation based methods and motion estimation based methods.The visual artefacts of the two types are different. Thus, it isadvantageous to differentiate the EC effects of the two concealmenttypes. The employed concealment type may also depend on the predictiontype, e.g. in the JVT JM decoder.

Except the JVT JM non-real-time decoder, a widely used real-time decoderis the ffmpeg decoder. We found that, in the current version, the ffmpegdecoder can recover lost slices much better than the JVT decoder: in oneembodiment, the decoder first determines if the frame with (a) lostslice(s) is intra-more-likely or not. If the frame is intra-more-likely,then the pixel-interpolation based method is used; otherwise, the motionestimation based method is used. Possible criteria for determining anintra-more-likely frame are:

-   (1) if there is no previous frame as a reference, then the current    frame is an intra-more-likely frame;-   (2) if the frame is an I-frame, calculate the absolute difference    between the current frame and the immediately previous frame, based    on correctly received MBs of the current frame. If the absolute    difference is large, then the frame is more likely to be different    from the previous frame, and thus should more likely use the intra    pixel interpolation based method. In an exemplary implementation,    define a variable is_intra_like for a frame, and increase it by the    value of the absolute difference. Otherwise, i.e. if the absolute    difference is small, calculate the absolute difference between the    vertically adjacent MBs in the previous frame: if the difference is    large, then the previous frame is more likely to have rich texture.    Since this feature of the current frame is assumed to be similar in    the current and the previous frame, the current frame is more likely    to have rich texture. In this case, the current frame should not be    concealed with the pixel-interpolation based method, since the    pixel-interpolation based method is more suitable for smooth    regions. In this case, decrease the variable is_intra_like by the    value of the absolute difference. This procedure is repeated for all    MBs of the frame. Finally, if the variable is_intra_like is larger    than zero, the frame is judged to be intra-more-likely, and the    pixel-interpolation based method will be used. Otherwise, the motion    estimation based method will be used.-   (3) if the frame is inter-predicted (i.e. P- or B-frame), calculate    the variable is_intra_like based on correctly received MBs of the    current frame. Increment is_intra_like if a MB is intra-coded, and    decrement is_intra_like if the MB is inter-coded. If finally    is_intra_like is larger than zero, then the frame is    intra-more-likely, and the pixel-interpolation based method will be    used. In other words, if the number of intra-coded MBs is larger    than the number of inter-coded MBs, then the frame is judged as    intra-more-likely, and the pixel-interpolation based method will be    used. Otherwise, the motion estimation based method will be used.

In another embodiment, there is only the ROI_level parameter on slicelevel used.

Additionally, a second set of side information syntax can be defined atencoding GOP or scene group level. A scene group is a group of picturesbetween two adjacent scene changes. The encoding GOP structure may bealigned with scene group or not. Generally, the video content in a scenegroup has very different characteristics from that of its adjacent scenegroups, but has similar characteristics within the group. If a frame isencoded into several slices, e.g. one slice contains one row of MBs, werefer to the slices in the same location of the frames in the group asslice group hereafter.

In one embodiment, a side information set also includes {TemporalComplexity Level, Spatial Complexity Level} for each encoding GOP orscene group. The proposed side information set may additionally includea ROI level parameter group_ROI_Level, when there are several slices ina frame, e.g. one MB row per slice. The group_ROI_level is calculatedfor each slice group.

TABLE 2 Parameter set on GOP level or scene group level SyntaxDescription size param_set_for_group{ temporal_complexity_level levelsof overall motion in the 2 group bits spatial_complexity_level levels ofoverall texture 2 complexity of the group bits group_ROI_level indicateswhether the group 1 contains a ROI bit }temporal_complexity_level reflects the different levels of overallmotion of the content in the GOP/scene group or slice group. Usually, 4levels are enough.spatial_complexity_level reflects the different levels of overalltexture complexity of the content in the GOP/scene group or slice group.Usually, 4 levels are enough.group_ROI_level is the value of “ROI level” of a slice group. Thisparameter is calculated only when there are several slices in a frame,e.g. one MB row per slice. The group_ROI_level is calculated for eachslice group in the GOP or scene group.

The calculation of the above side information parameters is described inthe following.

EC_level calculation

For an encoding slice, the “EC_level” may be calculated according todifferent EC methods. E.g. in H.264 reference decoder (also referred toas JVT decoder or JVT JM model), different EC methods are applied forinter-predicted slice and intra-predicted slice; therefore, in oneembodiment different calculation methods are used for the two slicetypes. In the JVT decoder, an intra pixel interpolation method is usedto conceal the MBs of a lost “intrapredicted” slice; temporal-domainmotion vector estimation based error concealment method is used for theMBs of a lost “inter-predicted” slice. In some more advanced decoders,the two categories of EC methods are selected not according to the slicetypes, but according to other features of a slice. An example is givenbelow. Other, similar calculation methods can be used.

For example in a JVT decoder, for each inter-predicted slice decode theslice and calculate the average motion vector (MV) of each MB byaveraging the MVs of the 4×4 subblocks. If the MB is encoded inintra-prediction mode, then set its MV to the value of maximum motionsearch range. The MV in pixel unit is obtained instead of in sub pixelprecision. This is a low-complexity method to obtain MVs of MBs.Alternatively, the MV of each MB can be calculated using other existingmotion search methods. Denote the MV of ith-MB as MV_(i). Sort theMV_(i) in the slice in descendent order as:

{MV_(j)|MV₀>MV₁> . . . >MV_(N-1)}, where N is the total number of MBs inthe slice. The temporal complexity of the slice is calculated byaveraging the top M MVs as:

$\begin{matrix}{{{TC} = {\frac{1}{M}{\sum\limits_{j = 0}^{M - 1}\;{MV}_{j}}}},{M < N}} & (4)\end{matrix}$

In our experiment, M=3 or M=N/3. The EC_level of the slice is calculatedas:

$\begin{matrix}{{EC\_ level} = \left\{ \begin{matrix}{0,} & {{TC} \leq {2({pixel})}} \\{2,} & {{TC} > {10({pixel})}} \\{1,} & {others}\end{matrix} \right.} & (5)\end{matrix}$

The rationale behind the EC_level calculation of interpredicted slicesis that the EC effects vary significantly with the different temporalcomplexity of the corrupted slices. For stationary slices, it can berecovered without noticeable artefacts. However, for slices having largemotion it is difficult to be error concealed, and there are usuallyserious edge distortions, which is perceptually very annoying.

For each intra-predicted slice, assume it is lost and its adjacentslices are correctly received. The pixel-domain interpolation EC methodapplied at JVT decoder is used to reconstruct the slice content. Theperceptual distortion is calculated as

$\begin{matrix}{D = \left( {\frac{1}{M}{\sum\limits_{{({j,k})} \in I}\;{D_{blk}^{2}\left( {j,k} \right)}}} \right)^{1/2}} & (6) \\{{D_{blk}\left( {j,k} \right)} = {\max\left\{ {{\frac{\frac{1}{N}{\sum\limits_{l = 0}^{N - 1}\;{{{Y_{j,k}^{rec}(l)} - {Y_{j,k}^{ec}(l)}}}}}{{JND}_{j,k}} - 1},0} \right\}}} & (7)\end{matrix}$where Y_(j,k) ^(rec) is the luminance component of the loss-free decodedMB indexed as (j,k), Y_(j,k) ^(ec) is the luminance component of theerror concealed MB indexed as (j,k), M is the total number of MBs in theslice, N is the total number of pixels in a MB, JND_(j,k) is avisibility threshold (“Just Noticeable Difference”) of the MB, which canbe calculated using known methods^(iv). The visible threshold isaffected by such effects as spatial contrast sensitivity and luminanceadaptation.

In an experiment, we only considered luminance masking effects andcalculated it according to the empirical equation⁴ with somemodification: ^(iv) e.g. in W. Lin et al., “Visual Distortion GaugeBased on Discrimination of Noticeable Contrast Changes”, IEEETransactions On Circuit and System for Video Tech., Vol. 15, No. 7, July2005

$\begin{matrix}{{JND}_{j,k} = \left\{ \begin{matrix}{{g - {\frac{g - h}{75}L_{j,k}}},} & {{{if}\mspace{14mu} L_{j,k}} \leq 75} \\{{{\frac{f - h}{130}L_{j,k}} + {\frac{255}{130}h} - {\frac{125}{130}f}},} & {{{if}\mspace{14mu} L_{j,k}} \geq 125} \\{h,} & {others}\end{matrix} \right.} & (8)\end{matrix}$where L_(j,k) is the background luminance of a MB indexed as (j,k). Itis calculated by averaging the luminance values of the pixels of thedecoded MB. The parameters f,g,h may be selected as f=22, g=20, h=10.Then, the EC level of the slice can be calculated as:

$\begin{matrix}{{EClevel} = \left\{ \begin{matrix}{0,} & {D < {Thrd}} \\{1,} & {others}\end{matrix} \right.} & (9)\end{matrix}$where Thrd is a constant and set to a small value near zero, e.g. 0.05.

The rationale behind the EC level calculation of intra-coded slices isthat the quality degradation of slices that are error concealed with apixel-interpolation method may not be perceived in some particularcircumstances (e.g. a region with very dark or bright intensity oruniform texture, or a region with rich texture). The EC level ofinter-coded slice may be calculated in a similar way. However, themethod described above is computationally more efficient and moreeffective.

ROI_level calculation

The parameter ROI_level can have two values. “0” denotes that the sliceis not ROI, and “1” denotes that the slice is ROI. Methods for definingROIs are known. E.g. if a slice contains an attention-sensitive regionof interest, such as eyes and/or mouth, the slice ROI_level is “1”.Otherwise, the slice ROI_level is “0”. Any existing ROI segmentation(also known as saliency mapping) method may be used here. In anotherembodiment, if the encoder is configured to use FMO slice mode of“foreground and background”, where foreground is ROI and background isnot, then the foreground slice has ROI_level of “1”, and the backgroundslice has ROI_level of “0”.

EP_level calculation

Exemplarily, an error propagation attenuation (EP) level is calculatedas follows. For intra-coded slice, the EP level of each slice is set to“0”, because all MBs are intra-coded, and there is no error propagatedfrom previous frames. For inter-coded slices, decode it to get thenumber of the intra-coded MBs; calculate the ratio of intra MBs to thetotal MBs of the slice, denoted as IRR. The EP level of each slice isset according to the value of IRR. E.g. if 4 bits are used to representIRR levels, then there are 16 levels of {(2n+1)/32, n=0, . . . , 15}.The slice's IRR level is determined by rounding its IRR value to thecorresponding IRR level. A frame's EP level can be determined in asimilar way.

In the following, the calculation of the above-mentioned sideinformation parameters for group level is described.

Group Temporal_Complexity_Level calculation

For a GOP or scene group or slice group (called collectively as grouphereafter), the temporal complexity level is calculated from the “zeroMV” ratio over the group, “average mean MV size” over the group and/or“uniformity of movement” in the group. The MV of each MB is obtained inthe same way as described on slice level. The average zero MV ratio,denoted as Z, is calculated as the ratio of the number of zero MVs tothe total MVs in the group:Z=N _(MV,0) /N _(MV,total)  (10)

The average mean MV size, denoted as V, is calculated as the average ofthe mean size of the non-zero MVs within one slice/frame over the group,then normalized to the frame width. Using a threshold method, thetemporal complexities are classified, e.g. into three levels: stationary(level 0), very large motion (level 2), others/medium (level 1).

Group Spatial_Complexity_Level calculation

For a GOP or scene group, the spatial complexity level is calculated byfirst applying an edge detection operator (e.g. Sobel operator) to eachframe/slice of the group. Then the magnitude of the edges is manipulatedto classify e.g. two or three levels: regions with smooth texture (level0) or with rich texture (level 2). Additionally, a third level may beothers/medium (level 1).

Group_ROI_level

The Group_ROI_level parameter is used only for slice groups (definedabove). If a current slice group contains an attention-sensitive region,like eyes and mouth, its ROI_level is “1”; otherwise, it is “0”.

It is to be noted that each of the above-described parameters may beused separately, or in any combination. While it has been found thatgenerally the slice-level parameters cause a stronger effect than thegroup/GOP level parameters, this may depend on application relatedcircumstances of an embodiment.

According to the described examples, numerous advantageous embodimentscan be created. The below embodiments may be combined. Especially,method-related embodiments may evolve into apparatus-relatedembodiments.

FIG. 3 shows a flow-chart of a method 30 for enabling video qualityassessment. The video data are transmitted via a packet network and eachframe of video data is represented by a variable number of packets. Themethod comprises steps of receiving 31 a sequence of packets 34associated with the stream of frames of video data, generating 32 a setof parameters from said sequence of packets, and inserting 33 saidgenerated set of parameters as side information into said stream offrames. The video data comprise at least one slice level, and thegenerated set of parameters comprises at least one parameter that refersindividually to the slice level of the video (i.e. not to other slices).The set of parameters is suitable for generating an estimated meanopinion score (MOS) for the stream of frames of video data.

FIG. 4 shows a flow-chart of a method 40 for assessing video quality.The video data are transmitted via a packet network and each frame ofvideo data is represented by a variable number of packets. The methodfor assessing the quality of a stream of frames of video data comprisessteps of receiving 41 a sequence of packets 44 associated with thestream of frames of video data, extracting 42 a set of parameters fromsaid sequence of packets, and generating 43 an estimated mean opinionscore 45 based on said set of parameters. The video data comprise atleast one slice level, and the extracted set of parameters comprises atleast one parameter that refers individually to the slice level (i.e.not to other slices) of the video.

In all embodiments, if a frame has more than one slice (denoted as slicelevels), the set of parameters comprises at least one parameter thatrefers individually to a particular slice or slice level of the video(not to other slices/slice levels).

In one embodiment, the set of parameters further comprises at least oneparameter that refers individually to a GOP level or scene group levelof the video.

In one embodiment, a first parameter (EC_level) indicates an errorconcealment level for a slice. In one embodiment, the first parameterreflects motion and/or texture complexity of the slice, and, in a casewhere parameters are created, the step of generating the first parametercomprises using a first calculation method 37 a (cf. FIG. 3) forgenerating the first parameter if the slice is intra-predicted, andusing a different second calculation method 37 b for generating thefirst parameter if the slice is inter-predicted. Further, adistinguishing or selection step 36 may be performed for selecting an ECtype, e.g. distinguishing intra-predicted slices from inter-predictedslices for JVT JM decoders. In more advanced decoders, the twocategories of EC methods are selected 36 not according to the slicetypes, but according to other features of the slice. The calculation ofEC_level is aimed at distinguishing the EC effects caused by the contentof a lost slice and the different EC methods applied to conceal a lostslice. As described above, in one embodiment the first calculationmethod 37 a is used if the slice has more intra-MBs than inter-MBs,while the second calculation method 37 b is used otherwise.

In one embodiment, a second parameter (ROI_level) indicates whether ornot a slice contains a region-of-interest (ROI).

In one embodiment, a third parameter (EP_attenuation_level) indicates anerror propagation attenuation level for a slice. In an embodiment whereparameters are created, generating the third parameter in the generatedset of parameters comprises for inter-coded slices calculating a ratioof intra-coded macroblocks and total number of macroblocks in the slice,wherein for intra-coded slices the third parameter is set to zero.

In one embodiment, a fourth parameter (size_in_MBs) indicates a numberof macroblocks in a slice.

In one embodiment, a fifth parameter (temporal_complexity_-level)indicates a temporal complexity level for a GOP or scene group. In anembodiment as shown in FIG. 3, where parameters are created, the step ofgenerating the fifth parameter in the generated set of parameterscomprises sub-steps of determining 38 a a ratio of zero motion vectorsfor the GOP or scene group, classifying 38 b the GOP or scene group intoone of at least three motion levels, the motion levels comprising atleast a stationary level, a medium motion level and a very large motionlevel, and generating 38 c the fifth parameter for the GOP or scenegroup in accordance with the motion level into which it was classified.

In one embodiment, a sixth parameter (spatial_complexity_-level)indicates a spatial complexity level for a GOP or scene group, whereinedge detection is used in each slice or frame of the GOP or scene group,and according to the amount of edges the GOP or scene group isclassified into one of at least two spatial complexity levels, thelevels correspondding to smooth texture and rich texture.

In one embodiment, a seventh parameter (group_ROI_level) indicates agroup ROI_level for a slice group in a GOP or scene group, indicatingwhether or not corresponding slices in the GOP or scene group contain aregion-of-interest (ROI).

In one embodiment, as shown in FIG. 5, an apparatus 50 for enablingquality assessment of a stream of frames of video data, wherein thevideo data are transmitted via a packet network and each frame of videodata is represented by a variable number of packets, comprises thefollowing: receiving means 51 for receiving a sequence of packetsassociated with the stream of frames of video data, computing means 52for generating a set of parameters from said sequence of packets, theset of parameters being suitable for generating an estimated meanopinion score for the stream of frames of video data, and insertingmeans 53 for inserting said generated set of parameters as sideinformation into said stream of frames. The video data comprise a slicelevel and the generated set of parameters comprises at least oneparameter that refers to the slice level of the video. The receivingmeans 51 may be an input stage, a receiver, a connector etc. Thecomputing means 52 may be a (micro-)processor, software execution unit,calculation unit etc. The inserting means 53 may be a multiplexer,arbiter or similar.

FIG. 5 shows an embodiment that further comprises a distinguishing unit56 for distinguishing between inter-coded slices and intra-coded slices,a first calculation unit 57 a for generating the first parameter if theslice is intracoded and a second calculation unit 57 b for generatingthe first parameter if the slice is inter-coded.

Further, the embodiment shown in FIG. 5 comprises, for generating thefifth parameter in the generated set of parameters, first determiningmeans 58 a for determining a ratio of zero motion vectors for the GOP orscene group, classifying means 58 b for classifying the GOP or scenegroup into one of at least three motion levels, the motion levelscomprising at least a stationary level, a medium motion level and a verylarge motion level, and generating means 58 c for generating said fifthparameter for the GOP or scene group in accordance with the motion levelinto which it was classified.

In one embodiment, as shown in FIG. 6, an apparatus 60 for assessing thequality of a stream of frames of video data is disclosed. The video data44 are transmitted via a packet network and each frame of video data isrepresented by a variable number of packets. The apparatus 60 forassessing the quality of a stream of frames of video data comprises thefollowing:

receiving means 61 for receiving a sequence of packets associated withthe stream of frames of video data, extraction means 62 for extracting aset of parameters from said sequence of packets, and computing means 63for generating an estimated mean opinion score 45 based on said set ofparameters. The video data comprise a slice level, and the extracted setof parameters comprises at least one parameter that refers to the slicelevel of the video.

In one embodiment, a computer executable program for a video qualityestimation device is provided that causes a computer of the device toexecute a method according to any of the claims 1-13. In one embodiment,a computer readable recording medium has recorded thereon said computerexecutable program.

The invention can be used in packet-layer VQM models, beforetransmission or after reception of a packetized video signal. Anotherusage of the side information (i.e. inserted parameters) is that, incase of network congestion, a network element, e.g. router, can usethese parameters to estimate end-user quality and determine whichpackets to discard, while maintaining optimal end user's perceived videoquality.

While there has been shown, described, and pointed out fundamental novelfeatures of the present invention as applied to preferred embodimentsthereof, it will be understood that various omissions and substitutionsand changes in the apparatus and method described, in the form anddetails of the devices disclosed, and in their operation, may be made bythose skilled in the art without departing from the spirit of thepresent invention. It is expressly intended that all combinations ofthose elements that perform substantially the same function insubstantially the same way to achieve the same results are within thescope of the invention. Substitutions of elements from one describedembodiment to another are also fully intended and contemplated.

It will be understood that the present invention has been describedpurely by way of example, and modifications of detail can be madewithout departing from the scope of the invention.

Each feature disclosed in the description and (where appropriate) theclaims and drawings may be provided independently or in any appropriatecombination. Features may, where appropriate be implemented in hardware,software, or a combination of the two. Reference numerals appearing inthe claims are by way of illustration only and shall have no limitingeffect on the scope of the claims.

What is claimed is:
 1. A method for enabling quality assessment of astream of frames of video data, wherein the video data are transmittedvia a packet network and each frame of video data is represented by avariable number of packets, the method comprising: receiving a sequenceof packets associated with the stream of frames of video data;generating a set of parameters from said sequence of packets, the set ofparameters being suitable for generating an estimated mean opinion scorefor the stream of frames of video data, one parameter of said generatedset of parameters comprising a parameter indicating an error propagationattenuation level for a slice, said generating of said parameterindicating an error propagation attenuation level comprises, forinter-coded slices, calculating a ratio of intra-coded macroblocks andtotal number of macroblocks in the slice, and wherein for intra-codedslices the parameter is set to zero; and inserting said generated set ofparameters as side information into said stream of frames; wherein thevideo data comprise a slice level and wherein the generated set ofparameters comprises at least one parameter that refers individually tothe slice level of the video.
 2. The method according to claim 1,wherein said set of parameters further comprise at least one parameterthat refers individually to image content of a GOP level or scene grouplevel of the video.
 3. The method according to claim 2, wherein a fourthparameter indicates a temporal complexity level for a GOP or scenegroup.
 4. The method according to claim 3, wherein generating the fourthparameter in the generated set of parameters comprises determining aratio of zero motion vectors for the GOP or scene group; classifying theGOP or scene group into one of at least three motion levels, the motionlevels comprising at least a stationary level, a medium motion level anda very large motion level; and generating said fourth parameter for theGOP nr scene group in accordance with the motion level into which it wasclassified.
 5. The method according to claim 2, wherein a fifthparameter indicates a spatial complexity level for a GOP or scene group,wherein edge detection is used in each slice or frame of the GOP orscene group, and according to the amount of edges the GOP or scene groupis classified into one of at least two spatial complexity levels, thelevels corresponding to smooth texture and rich texture.
 6. The methodaccording to claim 2, wherein a sixth parameter indicates a group ROIlevel for a slice group in a GOP or scene group, indicating whether ornot corresponding slices in the GOP or scene group contain aregion-of-interest (ROI).
 7. The method according to claim 1, wherein afirst parameter indicates an error concealment level for a slice.
 8. Themethod according to claim 7, wherein the first parameter reflects motionand/or texture complexity of the slice, and wherein, the generating thefirst parameter in the generated set of parameters comprises determiningwhether the slice is intra-predicted or inter-predicted; using a firstcalculation method for generating said first parameter if the slice isintra-predicted; and using a different second calculation method forgenerating said first parameter if the slice is inter-predicted.
 9. Themethod according to claim 1, wherein a second parameter indicateswhether or not a slice contains a region-of-interest.
 10. The methodaccording to claim 1, wherein a third parameter indicates a number ofmacroblocks in a slice.
 11. A method for assessing the quality of astream of frames of video data, wherein the video data are transmittedvia a packet network and each frame of video data is represented by avariable number of packets, the method comprising: receiving a sequenceof packets associated with the stream of frames of video data;extracting a set of parameters from said sequence of packets, at leastone of said set of parameters comprising a parameter indicating an errorpropagation attenuation level for a slice; and generating an estimatedmean opinion score based on said set of parameters; wherein the videodata comprise a slice level and wherein the extracted set of parameterswas generated and inserted into said sequence of packets beforetransmitting the video data via the packet network and comprises atleast one parameter that refers individually to the slice level of thevideo; wherein the parameter indicating an error propagation attenuationlevel for a slice in the extracted set of parameters comprises, forinter-coded slices, a calculation of a ratio of intra-coded macroblocksand total number of macroblocks in the slice, and wherein forintra-coded slices the parameter indicating an error propagationattenuation level for a slice is set to zero.
 12. The method accordingto claim 11, wherein said set of parameters further comprise at leastone parameter that refers individually to image content of a GOP levelor scene group level of the video.
 13. The method according to claim 11,wherein a first parameter indicates an error concealment level for aslice.
 14. The method according to claim 13, wherein the first parameterreflects motion and/or texture complexity of the slice, and wherein thegenerating of the first parameter in the extracted set of parameterscomprises determining whether the slice is intra-predicted orinter-predicted; using a first calculation method for generating saidfirst parameter if the slice is intra-predicted; and using a differentsecond calculation method for generating said first parameter if theslice is inter-predicted.
 15. The method according to claim 13, whereina fourth parameter indicates a temporal complexity level for a GOP orscene group.
 16. The method according to claim 15, wherein generatingthe fourth parameter in the generated set of parameters comprises:determining a ratio of zero motion vectors for the GOP or scene group;classifying the GOP or scene group into one of at least three motionlevels, the motion levels comprising at least a stationary level, amedium motion level and a very large motion level; and generating saidfourth parameter for the GOP or scene group in accordance with themotion level into which it was classified.
 17. The method according toclaim 13, wherein a fifth parameter indicates a spatial complexity levelfor a GOP or scene group, wherein edge detection is used in each sliceor frame of the GOP or scene group, and according to the amount of edgesthe GOP or scene group is classified into one of at least two spatialcomplexity levels, the levels corresponding to smooth texture and richtexture.
 18. The method according to claim 13, wherein a sixth parameterindicates a group ROI level for a slice group in a GOP or scene group,indicating whether or not corresponding slices in the GOP or scene groupcontain a region-of-interest.
 19. The method according to claim 11,wherein a second parameter indicates whether or not a slice contains aregion-of-interest.
 20. The method according to claim 11, wherein athird parameter indicates a number of macroblocks in a slice.
 21. Anapparatus for enabling quality assessment of a stream of frames of videodata, wherein the video data are transmitted via a packet network andeach frame of video data is represented by a variable number of packets,the apparatus comprising: receiving means for receiving a sequence ofpackets associated with the stream of frames of video data; computingmeans for generating, a set of parameters from said sequence of packets,the set of parameters being suitable for generating an estimated meanopinion score for the stream of frames of video data, one parameter ofsaid generated set of parameters comprising a parameter indicating anerror propagation attenuation level for a slice, said generating of saidparameter indicating an error propagation attenuation level comprises,for inter-coded slices, calculating a ratio of intra-coded macroblocksand total number of macroblocks in the slice, and wherein forintra-coded slices the parameter is set to zero; and inserting means forinserting said generated set of parameters as side information into saidstream of frames; wherein the video data comprise a slice level andwherein the generated set of parameters comprises at least one parameterthat refers to the slice level of the video.
 22. An apparatus forassessing the quality of a stream of frames of video data, wherein thevideo data are transmitted via a packet network and each frame of videodata is represented by a variable number of packets, the apparatuscomprising receiving means for receiving a sequence of packetsassociated with the stream of frames of video data; extraction means forextracting a set of parameters from said sequence of packets, at leastone of said set of parameters comprising a parameter indicating an errorpropagation attenuation level for a slice: and computing means forgenerating an estimated mean opinion score based on said set ofparameters; wherein the video data comprise a slice level and whereinthe extracted set of parameters comprises at least one parameter thatrefers to the slice level of the video; wherein the parameter indicatingan error propagation attenuation level for a slice in the extracted setof parameters comprises, for inter-coded slices, a calculation of aratio of intra-coded macroblocks and total number of macroblocks in theslice, and wherein for intra-coded slices the parameter indicating anerror propagation attenuation level for a slice is set to zero.
 23. Anapparatus for enabling quality assessment of a stream of frames of videodata, wherein the video data are transmitted via a packet network andeach frame of video data is represented by a variable number of packets,the apparatus comprising: a processor and an associated memory adaptedto: receive a sequence of packets associated with the stream of framesof video data; generate a set of parameters from said sequence ofpackets, the set of parameters being suitable for generating anestimated mean opinion score for the stream of frames of video data, oneparameter of said generated set of parameters comprising a parameterindicating an error propagation attenuation level for a slice, saidgenerating of said parameter indicating an error propagation attenuationlevel comprises, for inter-coded slices, calculating a ratio ofintra-coded macroblocks and total number of macroblocks in the slice,and wherein for intra-coded slices the parameter is set to zero; andinsert said generated set of parameters as side information into saidstream of frames; wherein the video data comprise a slice level andwherein the generated set of parameters comprises at least one parameterthat refers individually to the slice level of the video.
 24. Theapparatus according to claim 23, wherein said set of parameters furthercomprise at least one parameter that refers individually to imagecontent of a GOP level or scene group level of the video.
 25. Theapparatus according to claim 24, wherein a fourth parameter indicates atemporal complexity level for a GOP or scene group.
 26. The apparatusaccording to claim 25, wherein the processor and memory generate thefourth parameter in the generated set of parameters by further beingadapted to: determine a ratio of zero motion vectors for the GOP orscene group; classify the GOP or scene group into one of at least threemotion levels, the motion levels comprising at least a stationary level,a medium motion level and a very large motion level; and generate saidfourth parameter for the GOP or scene group in accordance with themotion level into which it was classified.
 27. The apparatus accordingto claim 24, wherein a fifth parameter indicates a spatial complexitylevel for a GOP or scene group, wherein edge detection is used in eachslice or frame of the GOP or scene group, and according to the amount ofedges the GOP or scene group is classified into one of at least twospatial complexity levels, the levels corresponding to smooth textureand rich texture.
 28. The apparatus according to claim 24, wherein asixth parameter indicates a group ROI level for a slice group in a GOPor scene group, indicating whether or not corresponding slices in theGOP or scene group contain a region-of-interest (ROI).
 29. The apparatusaccording to claim 23, wherein a first parameter indicates an errorconcealment level for a slice.
 30. The apparatus according to claim 29,wherein the first parameter reflects motion and/or texture complexity ofthe slice, and wherein the processor and memory are further adaptedto-generate the first parameter in the generated set of parameters byfurther being adapted to: determine whether the slice is intra-predictedor inter-predicted; use a first calculation method for generating saidfirst parameter if the slice is intra-predicted; and use a differentsecond calculation method for generating said first parameter if theslice is inter-predicted.
 31. The apparatus according to claim 23,wherein a second parameter indicates whether or not a slice contains aregion-of-interest.
 32. The apparatus according to claim 23, wherein athird parameter indicates a number of macroblocks in a slice.